<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <ob_link><a class="btn" href="{:url('memberAdd')}"><i class="fa fa-plus"></i> 新增代理</a></ob_link>
            &nbsp;
            <ob_link><a class="btn export" url="{:url('exportMemberList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
           
        </div>
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|用户名|邮箱|手机">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('memberlist')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>昵称<a href="{:url('memberList',array('id'=>'desc'))}">&nbsp;&nbsp;<i class="fa fa-fw fa-sort"></i></a></th>
          <th>用户名</th>
          <!--<th>邮箱</th>-->
          <th>网站数量</th>
          <th>手机</th>
          <th>注册时间</th>
          <th>上级</th>
          <th>余额<a href="{:url('memberList',array('sort'=>'asc'))}">&nbsp;&nbsp;<i class="fa fa-fw fa-sort"></i></a></th>
          <th>备注</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.nickname}</td>
                  <td>{$vo.username}</td>
                  <!--<td>{$vo.email|default='未绑定'}</td>-->
                  <td><a href="{:url('seo/weblist',array('dl_search' => tp_encrypt($vo['id'])))}">{$vo.webnum}</a></td>
                  <td>{$vo.mobile|default='未绑定'}</td>
                  <td>{$vo.create_time}</td>
                  <td>{$vo.leader_nickname}</td>
                    <td >{$vo.price}元</td>
                    <td style="max-width: 200px;">{$vo.beizhu}</td>
                  <td>{$vo.status_text}</td>
                  <td class="col-md-3 text-center">
                      <ob_link><a href="{:url('memberEdit', array('id' => tp_encrypt($vo['id'])))}" class="btn"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                      &nbsp;
                      <ob_link><a href="{:url('seo/chongzhi', array('id' => tp_encrypt($vo['id'])))}" class="btn"><i class="fa fa-money"></i> 充值</a></ob_link>
                  <!--    <ob_link><a class="btn"  href="{:url('memberAuth', array('id' => $vo['id']))}"><i class="fa fa-user-plus"></i> 授 权</a></ob_link>-->
                      &nbsp;
                      <ob_link><a class="btn confirm ajax-get"  href="{:url('memberDel',array('id' => tp_encrypt($vo['id'])))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
</script>